﻿<%@ Page Language="C#" MasterPageFile="~/Publish/Content.master" AutoEventWireup="true"
    CodeFile="Shop.aspx.cs" Inherits="Publish_Shop" Theme="Green" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphYouAreHere" runat="Server">
    Shop
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphFunction" runat="Server">
    shopping
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    Danh sách các Shop
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphContent" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy2" runat="server">
    </asp:ScriptManagerProxy>
    <div id="navigator">
        <table cellpadding="2" align="center">
            <tr>
                <td class="caption">
                    Tỉnh/Thành phố:
                </td>
                <td>
                    <asp:DropDownList ID="ddlState" runat="server" SkinID="ddlCommon">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddState" runat="server" TargetControlID="ddlState"
                        Category="IDState" PromptText="-- Xem tất cả --" LoadingText="[Tải về...]" ServicePath="../Services/ServiceLib.asmx"
                        ServiceMethod="GetListOfStates">
                    </ajaxToolkit:CascadingDropDown>
                </td>
                <td class="caption">
                    Khu vực:
                </td>
                <td>
                    <asp:DropDownList ID="ddlLocation" runat="server" SkinID="ddlCommon">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddLocation" runat="server" TargetControlID="ddlLocation"
                        Category="IDLocation" PromptText="-- Xem tất cả --" LoadingText="[Tải về...]" ServiceMethod="GetListOfLocationsByState"
                        ServicePath="../Services/ServiceLib.asmx" ParentControlID="ddlState">
                    </ajaxToolkit:CascadingDropDown>
                </td>
                <td>
                    <input id="btnView" type="button" runat="server" class="search" value="Xem" onserverclick="btnView_ServerClick" />
                </td>
            </tr>
        </table>
    </div>
    <hr style="width: 90%;" />
    <asp:DataList ID="lstShop" runat="server" CssClass="aligncenter" CellSpacing="4"
        RepeatColumns="5" ShowFooter="False" ShowHeader="False">
        <ItemTemplate>
            <%# BindShop(DataBinder.Eval(Container.DataItem,"IDShop").ToString(), DataBinder.Eval(Container.DataItem,"Title").ToString(), DataBinder.Eval(Container.DataItem,"Image").ToString()) %>
        </ItemTemplate>
        <ItemStyle CssClass="aligntopcenter" />
    </asp:DataList>
</asp:Content>
